﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ET;
using Marx;

namespace Demo
{
    public static class HotfixMain
    {
        public static void Start()
        {
            var config = Host.Instance.GetConfiguration();
            Configure(config);

            DoStart();
        }


        private static void Configure(IConfiguration config)
        {
            //Host.Scene.AddComponent<TemplateLoaderComponent>();
            Host.Scene.AddComponent<PlayerPrefsComponent>();

            //config.UseUIErrorTips<>();
            //config.UseUINormalTips<>();
            //config.UseUIWarningTips<>();

            ResHelper.UseResType(ResType.DLC);
        }


        private static void DoStart()
        {
            UIManager.Instance.CloseAll(false, false);
            UIManager.Instance.Show(UILogin.kName);
        }
    }
}
